package online.longzipeng.back.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import online.longzipeng.back.pojo.enums.MessageActionEnum;

import java.io.Serializable;

/**
 * @Author: lzp
 * @Description: 消息对象
 * @Date: Created in 11:17 2022/6/6
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class NotifyMessage<T> implements Serializable {

    /**
     * 通知消息，的信息
     */
    private String content;

    /**
     * 消息动作
     */
    private MessageActionEnum action;

    /**
     * 消息类型  0 用户消息 1系统消息
     */
    private Integer type;

    /**
     * 携带数据
     */
    private T data;

}
